<?php
use common\modules\system\models\MenuCategory;

/* @var $this yii\web\View */
/* @var $model common\modules\system\models\Menu */

$category = $model->category_id;
$categoryModel = MenuCategory::findOne(['id'=>$category]);

$this->title = '修改菜单项: ' . ' ' . $model->name;
$this->params['breadcrumbs'][] = [
    'label' => '菜单管理',
    'url' => ['/menu']
];
$this->params['breadcrumbs'][] = [
    'label' => $categoryModel['name'],
    'url' => ['/menu/default/index','category'=>$category]
];
$this->params['breadcrumbs'][] = $this->title;

?>

<?= $this->render('_form', [
        'model' => $model,
    ]) ?>